package com.testfileupload.uploadimg.design.adapter;

import java.util.HashMap;
import java.util.Map;

public class OuterUserInfo extends OuterUser implements IUserInfo{
    private Map baseInfo = super.getUserBaseInfo();
    private Map homeInfo = super.getUserHomeInfo();
    private Map officeInfo = super.getUserOfficeInfo();
    @Override
    public String getUserName() {
        String userName = (String) this.baseInfo.get("username");
        return userName;
    }

    @Override
    public String getHomeAddress() {
        String homeAddress = (String) this.homeInfo.get("homeAddress");
        return homeAddress;
    }

    @Override
    public String getMobileNumber() {
        String mobilNumber = (String) this.baseInfo.get("mobilNumber");
        return mobilNumber;
    }

    @Override
    public String getOfficeTelNum() {
        String officeNum = (String) this.officeInfo.get("officeNum");
        return officeNum;
    }

    @Override
    public String getJobPosition() {
        String jobposition = (String) this.officeInfo.get("jobposition");
        return jobposition;
    }

    @Override
    public String getHomeTelNum() {
        String homeTelNum = (String) this.homeInfo.get("homeTelNum");
        return homeTelNum;
    }
}
